package hu.elte.tudaskezelo.dbpedialike.views;

import hu.elte.tudaskezelo.dbpedialike.R;
import hu.elte.tudaskezelo.dbpedialike.activity.DBpediaLikeActivity;
import hu.elte.tudaskezelo.dbpedialike.domain.CityInformation;
import android.app.AlertDialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseExpandableListAdapter;
import android.widget.ExpandableListAdapter;
import android.widget.ExpandableListView;
import android.widget.TextView;

public class CityInformationDialog extends AlertDialog.Builder{
	private	CityInformation info;
	
	public CityInformationDialog(Context context, CityInformation i){
		super(context);
		info = i;
	}
	@Override
	public AlertDialog show(){
		this.setTitle(info.getName());
		String message = "Népesség: "+info.getPopulation();
		this.setMessage(message);
		this.setPositiveButton("OK", null);

	//	this.setCancelable(false);
		AlertDialog d = super.show();
		return d;		
	}
	

	
}
